import service from ".";

const repairPersonnelApi = {
    insert(repairPersonnel) {
        return service.post('/admin/repairPersonnel', repairPersonnel);
    },
    delete(pid) {
        return service.delete(`/admin/repairPersonnel/${pid}`);
    },
    update(repairPersonnel) {
        return service.put('/admin/repairPersonnel', repairPersonnel);
    },
    selectByPage(pageNum, pname) {
        return service.get('/admin/repairPersonnel', {
            params: {
                pageNum,
                pname
            }
        });
    },
    selectByPid(pid) {
        return service.get(`/admin/repairPersonnel/select/${pid}`);
    }
};
export default repairPersonnelApi;